<!DOCTYPE html>
<html>
<head>
	<title>企业调查情况</title>
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/index.css" />
		<link rel="stylesheet" href="__PUBLIC__/Home/css/list.css" />
		<script src="__PUBLIC__/assets/js/jquery.min.js"></script>
		<script src="__PUBLIC__/assets/js/jquery.form.js"></script>	
		<script src="__PUBLIC__/assets/js/bootstrap.js"></script>		
		<link rel="stylesheet" href="__PUBLIC__/assets/css/bootstrap.css" />
		<script src="__PUBLIC__/layer/layer.js"></script>	
	<style type="text/css">
		.listline{
			width: 100%;
		}
		.listoption li{
			width: 49%;
			float: left;
			margin-left: 3px; 
		}
		.listoption1 li{
			width: 97%;
			float: left;
			margin-left: 6px; 
		}
	</style>	
</head>
<body>
	<div class="row rowList rowHeader">
			<div class="header1">
				<span class="myIcon" style="margin-right: 5px;">&#xe626;</span>你好，<span id="userName"><php>echo $_SESSION['c_user']</php></span>！
				<a style="color:white;text-decoration: none;" href="{:U('index/loginout')}"><span id="cancel"><span class="myIcon">&#xe611;</span>注销</span></a>
			</div>
			<div class="">
				<img style="height: 40px; margin: 10px 0;" src="__PUBLIC__/Home/img/logo2.png" />
			</div>

	</div>
	<div class="alert alert-success" style="text-align: center;">
	    <a href="#" class="close" data-dismiss="alert">
	        &times;
	    </a>
	    <strong>用户初次进入系统，需要填写企业基本情况调查表才可使用此系统！</strong>
    </div>
    <div class="alert alert-danger" style="text-align: center;">
	    <a href="#" class="close" data-dismiss="alert">
	        &times;
	    </a>
	    <strong><span style="color: red'">*</span>为必填项，单位地址请按营业执照填写！</strong>
    </div>
	<h2 style="text-align: center;">单位基本情况信息表</h2>
	<div class="content" style="font-size: 13px;">
	<form  action="{:U('research_run')}" method="post" id="form1">
		<div style="margin:0 auto; width: 60%; border: 1px solid;">
			<div class="listline">
				<div style="border:1px solid; height: 55px; width: 60%;float: left;">
					<p style="margin-top:5px; line-height: 15px;height: 15px;">　组织机构代码<span style="color: red;">*</span> &nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="jg_code" id="jg_code" class="checktext"></p>
					<p style="line-height: 15px;height: 15px;">　统一社会信用代码<span style="color: red;">*</span> &nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="xy_code" id="xy_code" class="checktext"></p>
				</div>
				<div style="border:1px solid; height: 55px;  width: 40%;float: left;">
					<p style="margin: 20px auto;">　单位详细名称<span style="color: red;">*</span>  &nbsp;&nbsp;&nbsp;&nbsp; <input type="text" class="checktext" id="name" name="name"></p>
				</div>
			</div>
			<div class="listline">
				<div style="width: 100%;height: 60px;border: 1px solid;clear: both;padding-top: 5px;">
					<p>　主要业务活动<span style="color: red;">*</span></p>
					&nbsp;&nbsp;&nbsp;1:<input type="text" class="checktext" id="activity1" name="activity1">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:<input type="text" name="activity2">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3:<input type="text" name="activity3">
				</div>
			</div>
			<div class="listline">
				<div style="width: 100%;border: 1px solid;padding-top: 5px;">
					<p>　单位所在地及区划<span style="color: red;">*</span></p>
					&nbsp;&nbsp;&nbsp;<input type="text" class="checktext" name="province" id="province">省(自治区、直辖市)<input type="text" class="checktext" id="city" name="city">地(区、县、州)<input type="text" class="checktext" id="county" name="county">县(区、市)<input type="text" class="checktext" id="village" name="village">乡(镇)<input type="text" class="checktext" id="street" name="street">街(村)、门牌号<br/>
					&nbsp;&nbsp;&nbsp;单位位于：<input id="agency" type="text" name="agency" class="checktext">街道办事处<input id="community" type="text" class="checktext" name="community">社区(居委会)
				</div>
			</div>
			<div class="listline">
				<div style="width: 100%;border: 1px solid;padding-top: 5px;">
					<p>&nbsp;&nbsp;单位注册地及区划<span style="color: red;">*</span></p>
					&nbsp;&nbsp;&nbsp;<input type="text" id="reg_province" class="checktext" name="reg_province">省(自治区、直辖市)<input type="text" class="checktext" id="reg_city" name="reg_city">地(区、县、州)<input type="text" class="checktext" id="reg_county" name="reg_county">县(区、市)<input class="checktext" type="text" id="reg_village" name="reg_village">乡(镇)<input class="checktext" type="text" id="reg_street" name="reg_street">街(村)、门牌号<br/>
					&nbsp;&nbsp;&nbsp;注册地位于：<input type="text" name="reg_agency" id="reg_agency" class="checktext">街道办事处<input type="text" name="reg_community" class="checktext" id="reg_community">社区(居委会)
				</div>
			</div>

			<div class="listline">
				<div style="width: 100%; border: 1px solid; padding-top: 5px;">
					&nbsp;&nbsp;从业人员<span style="color: red;">*</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;从业人员期末人数<input  class="checktext" type="text" id="employee" name="employee">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中：女性<input class="checktext" type="text" id="women" name="women">
				</div>
			</div>

			<div class="listline">
				<div style="width: 100%; border: 1px solid; padding-top: 5px;">
					<p>&nbsp;&nbsp;企业主要经济指标</p>
					&nbsp;&nbsp;&nbsp;营业收入<input type="text" name="income">千元&nbsp;&nbsp;其中：主营业务收入<input type="text" name="main_income">千元&nbsp;&nbsp;&nbsp;&nbsp;资产总计：<input type="text" name="assets">千元<br/>
					&nbsp;&nbsp;营业税金及附加<input type="text" name="tax">千元&nbsp;&nbsp;&nbsp;&nbsp;其中：主营业务税金及附加<input type="text" name="main_tax">千元
				</div>
			</div>
			<div class="listline">
				<div style="width: 100%; border: 1px solid; height: 30px;">
					<div style="float: left; height: 30px; border: 1px solid; width: 50%;">
						&nbsp;&nbsp;&nbsp;法定代表人(单位负责人)<span style="color: red;">*</span><input id="proson" type="text" name="person" class="checktext">
					</div>
					<div style="float: left; height: 30px; border: 1px solid; width: 50%;">
						&nbsp;&nbsp;&nbsp;开业(成立)时间<span style="color: red;">*</span><input id="opentime" type="text" name="opentime" class="checktext">
					</div>
				</div>
			</div>
			<div class="listline">
				<div style="width: 100%; overflow: hidden; border: 1px solid;">
					<div style="float: left; border: 1px solid; width: 50%;">
						<p style="padding-top: 5px;">&nbsp;&nbsp;&nbsp;联系方式</p>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长途区号<input type="text" name="areacode"><br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;国定电话<input type="text" name="tel"><br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;移动电话<input type="text" name="moblie"><br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;传真号码<input type="text" name="fax"><br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;邮政编码<input type="text" name="zip">
					</div>
					<div style="float: left; top: 50px; position: relative; width: 50%;">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;电子邮箱<input type="text" name="email"><br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;　网&nbsp;址&nbsp;&nbsp;<input type="text" name="url">
					</div>
				</div>
				<div style="listline">
					<div style="width: 100%; border: 1px solid; padding-top: 5px; overflow: hidden;">
						<p>&nbsp;&nbsp;&nbsp;登记注册类型<span style="color: red;">*</span>&nbsp;&nbsp;<input type="text" id="reg_type" name="reg_type" class="checktext"></p>
						<div style="float: left; width: 50%;">
							&nbsp;&nbsp;<b>内资</b>
							<ul class="listoption">
								<li>110&nbsp;国有</li>
								<li>159&nbsp;其他有限责任公司</li>
								<li>120&nbsp;集体</li>
								<li>160&nbsp;股份有限公司</li>
								<li>130&nbsp;股份合作</li>
								<li>171&nbsp;私营独资</li>
								<li>141&nbsp;国有联营</li>
								<li>172&nbsp;私营合伙</li>
								<li>142&nbsp;集体联营</li>
								<li>173&nbsp;私营有限责任公司</li>
								<li>143&nbsp;国有与集体联营</li>
								<li>174&nbsp;私营股份有限公司</li>
								<li>149&nbsp;其他联营</li>
								<li>190&nbsp;其他</li>
								<li>151&nbsp;国有独资公司</li>
							</ul>
						</div>
						<div style="float: left; width: 25%;">
							&nbsp;&nbsp;<b>港澳台商投资</b>
							<ul class="listoption1">
								<li>210&nbsp;与港澳台商合资经营</li>
								<li>220&nbsp;与港澳台商合作经营</li>
								<li>230&nbsp;港澳台商独资</li>
								<li>240&nbsp;港澳台商投资股份有限公司</li>
								<li>290&nbsp;其他港澳台投资</li>
							</ul>
						</div>
						<div style="float: left; width: 25%;">
							&nbsp;&nbsp;<b>外商投资</b>
							<ul class="listoption1">
								<li>310&nbsp;中外合资经营</li>
								<li>320&nbsp;中外合作经营</li>
								<li>330&nbsp;外资企业</li>
								<li>340&nbsp;外商投资股份有限公司</li>
								<li>390&nbsp;其他外商投资</li>
							</ul>
						</div>
					</div>
					
				</div>

				<div class="listline">
					<div style="width: 100%; border: 1px solid; padding-top: 5px;">
						<p>&nbsp;&nbsp;&nbsp;是否台商投资(限港澳台商投资企业填报)<span style="color: red;">*</span>&nbsp;&nbsp;&nbsp;<input type="text" name="is_investment" class="checktext" id="is_investment"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 是 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 否</p>
					</div>
				</div>

				<div class="listline">
					<div style="width: 100%; border: 1px solid; padding-top: 5px;">
						<p>&nbsp;&nbsp;&nbsp;企业控股状态<span style="color: red;">*</span>&nbsp;&nbsp;&nbsp;<input type="text" name="holdingstate" class="checktext" id="holdingstate"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 国有控股 &nbsp;&nbsp;&nbsp; 2 集体控股 &nbsp;&nbsp;&nbsp; 3 私人控股 &nbsp;&nbsp;&nbsp; 4 港澳台商控股 &nbsp;&nbsp;&nbsp; 5 外商控股 &nbsp;&nbsp;&nbsp; 9 其他</p>
					</div>
				</div>

				<div class="listline">
					<div style="width: 100%; border: 1px solid; padding-top: 5px;">
						&nbsp;&nbsp;&nbsp;营业状态<span style="color: red;">*</span>&nbsp;&nbsp;&nbsp;<input type="text" class="checktext" name="bussstate" name="bussstate"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 营业 &nbsp;&nbsp;&nbsp; 2 停业(歇业) &nbsp;&nbsp;&nbsp; 3 筹建 &nbsp;&nbsp;&nbsp; 4 当年关闭 &nbsp;&nbsp;&nbsp; 5 当年破产 &nbsp;&nbsp;&nbsp; 6 当年注销  &nbsp;&nbsp;&nbsp; 7 当年吊销 &nbsp;&nbsp;&nbsp; 8 当年注册未经营 &nbsp;&nbsp;&nbsp; 9 其他
					</div>
				</div>

				<div class="listline">
					<div style="width: 100%; border: 1px solid; padding-top: 5px;">
						&nbsp;&nbsp;&nbsp;企业集团状况(限企业集团母公司及成员企业填写)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;本企业是<input type="text" name="companystatus"><br/> 
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 集团母公司(核心企业或集团总部)<br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2 成员企业——请填直接上级法人单位组织机构代码 <input type="text" name="upjg_code"><br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;上级法人统一社会信用代码 <input type="text" name="upxy_code">
					</div>
				</div>

			</div>
			单位负责人<span style="color: red;">*</span>：<input type="text" id="agenter" name="agenter" class="checktext">统计负责人<span style="color: red;">*</span>：<input class="checktext" type="text" name="addpeople" id="addpeople">填表人<span style="color: red;">*</span>：<input type="text" id="writepeople" class="checktext" name="writepeople">联系电话<span style="color: red;">*</span>：<input type="text" id="contact" name="contact" class="checktext"> 报出日期：
		</div>
			<div class="clearFLoat">
							<button id="submit"><span class="myIcon">&#xe613;</span>上报数据</button>
						</div>
		</form>
	</div>
</body>

<script type="text/javascript">
		$('#form1').ajaxForm({
			beforeSubmit: checkForm, // 此方法主要是提交前执行的方法，根据需要设置
			success: complete, // 这是提交后的方法
			dataType: 'json'
		});
		function checkForm(){
			var isnull = false;
			$('.checktext').each(function(){
				if ('' == $.trim($(this).val())) {
					layer.msg("必填项必填！",  {
							icon: 2,
							time: 1000 //1秒关闭（如果不配置，默认是3秒）
						});
					$(this).focus();
					isnull = true;
					return false;
				}
			});
			if (isnull) {
				return false;
			}
		}
		function complete(data){
			if(data.status==1){
				layer.alert(data.info, {icon: 6}, function(index){
					layer.close(index);
					window.location.href=data.url;
				});
			}else{
				layer.alert(data.info, {icon: 5}, function(index){
					layer.close(index);
					return false;
				});
			}
		}			
</script>

</html>